#pragma once

#include "cocos2d.h"
#include "cocos-ext.h"
USING_NS_CC;

#define TAG_SPRITE9		1
#define TAG_LABEL		2
#define TAG_LAYERTIPS	"layer_tips"

class ToolTips
{
protected:
	ToolTips();
	~ToolTips();
public:
	static ToolTips*	GetInstance(void);
	static void			Release(void);

	bool				Init(void);

	void				ShowTips(const char* msg, unsigned int x, unsigned int y);
	void				ShowTips(const char* msg, unsigned int x, unsigned int y, float timeout);
	void				HideTips(void);
private:
	static	ToolTips*	__instance;
	Layer*				_layerTips;
	ui::Scale9Sprite*	_sprite;
	Label*				_label;
	bool				_tips;
};